package org.example.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.domain.po.ErpDepot;
import org.example.domain.po.ErpInOutItem;
import org.example.domain.po.ErpSupplier;
import org.example.service.ErpInOutItemService;
import org.example.mapper.ErpInOutItemMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 14120
* @description 针对表【erp_in_out_item(收支项目表)】的数据库操作Service实现
* @createDate 2024-10-28 15:10:01
*/
@Service
public class ErpInOutItemServiceImpl extends ServiceImpl<ErpInOutItemMapper, ErpInOutItem>
    implements ErpInOutItemService{

    @Override
    public Page<ErpInOutItem> findByPage(Page<ErpInOutItem> page, String itemName, String type, String remark, Long tenantId) {
        return baseMapper.findByPage(page, itemName, type, remark, tenantId);
    }

    @Override
    public boolean modifyTheState(List<Integer> ids, String status) {
        return lambdaUpdate().set(ErpInOutItem::getStatus, status).in(ErpInOutItem::getItemId, ids).update();
    }
}




